x = input("Enter your fist triangle side")
y = input("Enter your second triangle side")
z = input("Enter your third triangle side")

x = int(x)
y = int(y)
z = int(z)

def is_triangle(a,b,c):
    if a + b > c or b + c > a or a + c > b:
        print("This is a true triangle")
        return True
    else:
        print("This is a false triangle")

def is_right_triangle(a,b,c):
    if a ** 2 + b ** 2 == c ** 2:
        print("This is a right triangle")
    else:
        print("This is not a right triangle")

def perimeter(a,b,c):
    print("The perimeter of the triangle is", (a + b + c))

p = int(x + y + z)/2
def area(a,b,c):
    if is_triangle(x, y, z):
        A = int((p * (p - x)*(p - y)*(p - z))** 0.5)
        print("The area of the triangle is", A)
    else:
        return 0

def display_triangle(a,b,c):
    if a < b and a < c:
        print("Smallest side:", a)
    if (b < a < c) or (b > a > c):
        print("Medium side:", a)
    if a > b and a > c:
        print("Largest side:", a)
    if b < a and b < c:
        print("Smallest side:", b)
    if (a < b < c) or (a > b > c):
        print("Medium side:", b)
    if b > a and b > c:
        print("Largest side:", b)
    if c < a and c < b:
        print("Smallest side:", c)
    if (a < c < b) or (a > c > b):
        print("Medium side:", c)
    if c > a and c > b:
        print("Largest side:", c)

is_triangle(x,y,z)
is_right_triangle(x, y, z)
perimeter(x, y, z)
area(x,y,z)
display_triangle(x,y,z)